package de.haw;

import de.haw.physics.Simulation;
import de.haw.util.Range;
import de.haw.vehicle.IVehicle;
import de.haw.world.IWorld;

public class Controller {
	private IVehicle vehicle;
	private IWorld world;
	private Simulation acceleration;
	public Controller(IVehicle vehicle, IWorld world) {
		this.vehicle = vehicle;
		this.world = world;
		acceleration = new Simulation(vehicle, world);
		
	}
	public void accelerate(double deltaTime) {
		acceleration.accelerate(deltaTime);
	}
	
	public void brake(double deltaTime) {
		acceleration.brake(deltaTime);
	}
}